package com.xhs.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;

import java.util.List;

/**
 * 新增任务请求DTO
 *
 * @author xhs
 */
@Data
@Schema(description = "新增任务请求")
public class CreateTaskRequest {

    /**
     * 手机号
     */
    @Schema(description = "手机号", example = "13800138000", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    /**
     * 任务名称
     */
    @Schema(description = "任务名称", example = "美食搜索任务", required = true)
    @NotBlank(message = "任务名称不能为空")
    private String taskName;

    /**
     * 搜索关键词列表
     */
    @Schema(description = "搜索关键词列表", example = "[\"美食\", \"餐厅\", \"小吃\"]", required = true)
    @NotEmpty(message = "搜索关键词不能为空")
    private List<String> keywords;

    /**
     * 执行间隔（分钟）
     */
    @Schema(description = "执行间隔（分钟）", example = "10", required = true)
    private Integer executeInterval = 10;

    /**
     * 帖子时间限制（天）
     */
    @Schema(description = "帖子时间限制（天）- 超过此时间的帖子不记录", example = "4", required = true)
    private Integer postTimeLimit = 4;

    /**
     * 搜索页数
     */
    @Schema(description = "搜索页数 - 小红书每页查20条，默认查1页", example = "1", required = true)
    private Integer searchPages = 1;

} 